package com.bingfor.easycablelink.my;

import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.Toolbar;

import com.bingfor.easycablelink.R;
import com.bingfor.easycablelink.base.BaseActivity;
import com.bingfor.easycablelink.databinding.ActivityPersonCenterBinding;
import com.bingfor.easycablelink.my.viewModel.PersonCenterViewModel;
import com.bingfor.easycablelink.utils.DialogHelp;

public class PersonCenterActivity extends BaseActivity {

    ActivityPersonCenterBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding=  ActivityPersonCenterBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        initToolbar();
    }

    @Override
    public void initViews() {
        binding.setViewModel(new PersonCenterViewModel(mContext));


    }

    @Override
    public void initToolbar() {
        Toolbar toolbar = $(R.id.toolbar);
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        setTitle("个人中心");
        initViews();
    }

    @Override
    public void refresh() {

    }
}
